import VueRouter from 'vue-router';

// 引入组件

import Home from './components/tabbar/HomeContainer.vue'
import Member from './components/tabbar/MemberContainer.vue'
import Shopcar from './components/tabbar/ShopcarContainer.vue'
import Search from './components/tabbar/SearchContainer.vue'

import NewsList from './components/News/NewsList.vue'
import NewsInfo from './components/News/NewsInfo.vue'
// 创建路由对象

let router = new VueRouter({
    routes:[
        { path:'/home',component:Home },
        { path:'/home/newslist',component:NewsList },
        // 动态路由匹配
        { path:'/home/newsinfo/:id',component:NewsInfo },
        { path:'/member',component:Member },
        { path:'/shopcar',component:Shopcar },
        { path:'/search',component:Search },
    ],
    linkActiveClass:'mui-active'
})

export default router